package com.cheng.xbjy.service;

import com.cheng.xbjy.entity.Meeting;
import com.cheng.xbjy.entity.vo.Result;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Map;

public interface MeetingService {

    Page<Meeting> findPage(String title, Long status, Integer page);

    Map<String, Object> findDetail(Long meetingId, Long userId);

    Result joinMeeting(Long meetingId, Long userId);

    void save(Meeting meeting);

    List<Meeting> findByStatusNot(Long status);

    void updateStatus(Long id, Long status);
}
